package com.interagriculture.controller;

import com.interagriculture.common.Result;
import com.interagriculture.entity.StudioInfo;
import com.interagriculture.entity.query.StudioInfoQuery;
import com.interagriculture.service.StudioInfoService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (StudioInfo)表控制层
 *
 * @author makejava
 * @since 2024-10-24 19:13:16
 */
@RestController
@RequestMapping("/studio")
public class StudioInfoController {
    /**
     * 服务对象
     */
    @Resource
    private StudioInfoService studioInfoService;


    /**
     * 无条件查询实验室基本信息
     * @return
     */
    @GetMapping("/getEssInfo")
    public Result<StudioInfo> getEssInfo(){
        StudioInfo studioInfo = studioInfoService.findEssInfo();
        studioInfo.setId(null);
        return Result.ok(studioInfo);
    }

}

